module testbench; 

int a[$]={0,1,2,3,4,5}; 
int b[$];

initial begin
    $display("\033[32m\t\t!!\tcode begin\t!!"); 
    
    a.push_back(11);
    
    // $display("get:%0d",a.sum()); 
    // $display("get:%0d",a.max()[0]); 
    // $display("get:%0d",a.min()[0]);  
    // foreach(a[i])begin
    //     $display("a[%0d]=%0d",i,a[i]);
    // end
    // b=a.find_index with (item>2);
    b=a.find_first with (item>3);
    foreach(b[i])begin
        $display("b[%0d]=%0d",i,b[i]);
    end


    $display("\t\t!!\tcode end\t!!\033[0m");
    $finish;

end

endmodule 


